package com.xxp.service;

import com.xxp.controller.request.TravelRequest;
import com.xxp.entity.Message;
import com.xxp.entity.Travel;
import com.xxp.entity.Tuijian;

import java.util.List;

public interface TravelService {
    List<Travel> selectAll();

    Object listByCondition(TravelRequest travelRequest);

    Travel selectById(Integer id);

    List<Message> findMes(Integer id);

    void pushMsg(Message message);

    void updateRecommend(Tuijian tuijian);

    void deleteMsg(Integer id);

    List<Message> findAllMes();

    void insertTravel(Travel travel);

    /*后台展示*/
    Object backTravel(TravelRequest travelRequest);

    void  deltetTravel(Integer id);


    void updateTravel(Travel travel);

    Travel TravelName(Integer id);

    List<Message> findAllMesByUser(Integer id);

}
